package com.imooc.bilibili.service.impl;

import com.imooc.bilibili.dao.RoleMenuRelationDao;
import com.imooc.bilibili.entity.RoleMenuRelation;
import com.imooc.bilibili.service.AuthRoleMenuRelationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("authRoleMenuService")
public class AuthRoleMenuRelationServiceImpl implements AuthRoleMenuRelationService {

    @Autowired
    private RoleMenuRelationDao roleMenuDao;

    @Override
    public List<RoleMenuRelation> getRoleMenuByRoleIds(List<Long> roleIdList) {
        return roleMenuDao.getRoleMenuByRoleIds(roleIdList);
    }
}
